#include "packet.h"
#include "netcom.h"
#include "robot.h"
#include "pms5005.h"

int main(int argc, char *argv[])
{
	packet_t *packet = NULL;
	conn_t *conn = NULL;
	char address[] = "10.20.199.128";
	char stream[MAX_PACKET_LEN];
	int port = 10001;

	packet = ping_pmb5010();
	packet_serialize(packet, stream);
	packet_delete(packet);

	connection_new_robot(&conn, address, (unsigned short)port);
	connection_send_stream(conn, stream, packet_stream_length(stream));
	connection_dispose(conn);

	return 0;
}
